Skip to content

chore: e2e test edgehog -- Rust#1064

Open
lusergit wants to merge 4 commits intoedgehog-device-manager:mainfrom
lusergit:push-stxrvnmtzmps
Open

chore: e2e test edgehog -- Rust#1064
lusergit wants to merge 4 commits intoedgehog-device-manager:mainfrom
lusergit:push-stxrvnmtzmps

Conversation

@lusergit
Copy link
Collaborator

E2E test edgehog -- [Rust]

The following PR adds a new e2e tool to test edgehog. Starting a painful, yet important task: ensuring things work without human testing.

Integration in the CI

Ideally this tool can be compiled once and run in CI at each backend change. It could test a specific path in the backend in an end to end fashion: it makes a request, expects some side effects and a specific response from the server.

The tool runs each test in parallel, aggregating the result of each test and prompting the user what went wrong where.

Seamless intefgration with the schema graphql

the rust graphql client generates all the types necessary to understand queries and mutations based on the schema and a provided .graphql file, contianing the specific request.
the library reads the graphql schema, generated by the backend with mix absinthe.schema.sdl --schema EdgehogWeb.Schema ../tools/e2e_test/schema/schema.graphql

@lusergit lusergit changed the title chore: init e2e test tool chore: e2e test edgehog -- Rust Nov 21, 2025
@lusergit lusergit force-pushed the push-stxrvnmtzmps branch 19 times, most recently from c4db2b3 to 59cc5ed Compare November 28, 2025 17:22
@lusergit lusergit force-pushed the push-stxrvnmtzmps branch 10 times, most recently from 97aa963 to 556ccad Compare December 5, 2025 14:38
@lusergit lusergit force-pushed the push-stxrvnmtzmps branch 15 times, most recently from acf3c18 to 9ce42ef Compare December 15, 2025 11:12
@lusergit lusergit marked this pull request as ready for review December 19, 2025 10:25
@coveralls
Copy link

coveralls commented Jan 8, 2026

Pull Request Test Coverage Report for Build a3639c530a2f5391afc5864f2fdf06a33da57b72-PR-1064

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.639%

Totals Coverage Status
Change from base Build 898ad56e5c2bac7413e1fdf031b5c9c6243cad6a: 0.0%
Covered Lines: 2730
Relevant Lines: 3344

💛 - Coveralls

@lusergit lusergit force-pushed the push-stxrvnmtzmps branch 6 times, most recently from 39ac499 to 97ed64e Compare January 19, 2026 15:52
lusergit added 4 commits March 9, 2026 17:40
Init a new Rust project to serve as e2e test suite

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
The default rust `test` utilities are quite powerful. This PR leverages them in
order to:
- natively use multiprocessing to run tests in parallel
- have comprehensive `pass` and `error` logs

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
Adds a github action triggering an end to end test of edgehog on backend
changes.

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants